#include <stdio.h>
#include <iostream>

using namespace std;


class Person{
public:
		char *name;
		int age;
		char *work;
public:
	void setPerson(char *m_name,int m_age,char *m_work)
	{
		this->name = m_name;
		this->age = m_age;
		this->work = m_work;
	}
	Person()
	{
		cout <<"Person()"<< endl;
	}
	Person(char *m_name,int m_age,char *m_work);
	void printInfo()
	{
		printf("name = %s, age = %d, work = %s\n", name, age, work); 
	}
};

Person::Person(char *m_name,int m_age,char *m_work)
	{
	cout <<"Person(char*,int)"<<endl;
        this->name = m_name;
        this->age = m_age;
        this->work = m_work;

	}


int main(int argc,char **argv)
{
	Person person1;
	Person person3("wangwu",11,"player");
	person1.printInfo();
    	person3.printInfo();

	return 0;
}
